package com.crane.oss.school.dao;


import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.crane.oss.school.bean.request.studentskiprope.QueryStudentTodaySkipRopeReq;
import com.crane.oss.school.bean.request.task.QueryRankReq;
import com.crane.oss.school.bean.resp.RankSkipRope;
import com.crane.oss.school.bean.resp.TodaySkipRopeResp;
import com.crane.oss.school.bean.resp.TopSkipRopeResp;
import com.crane.oss.school.model.StudentSkiprope;
import com.crane.oss.sys.model.User;


/**
 * 学生跳绳表
 *
 * @author zhenxing.pi
 * @email ccsu123456@qq.com
 * @date 2023年01月17日 23时03分27秒
 */
@Mapper
public interface StudentSkipropeDao extends BaseMapper<StudentSkiprope> {

	TodaySkipRopeResp queryTodaySkipRope(QueryStudentTodaySkipRopeReq req);

	TopSkipRopeResp queryTopSkipRope(@Param("model") Long model,@Param("studentId") Long studentId);
	
	IPage<RankSkipRope> queryRankListForPage(@Param("page")Page<User> page, @Param("request")QueryRankReq request);
	
	List<RankSkipRope> queryRankList(@Param("request")QueryRankReq request);
	
	RankSkipRope queryRankForStudentId(@Param("request")QueryRankReq request);
}
